package com.xy;

/**
 * @author 谢阳
 * @version 1.8.0_131
 * @date 2022/6/21 19:22
 * @description
 */
public abstract class Duck {
    public Duck() {

    }

    public abstract void display();

    public void quack() {
        System.out.println("鸭子嘎嘎叫...");
    }

    public void swim() {
        System.out.println("鸭子会游泳...");
    }

    public void fly() {
        System.out.println("鸭子会飞翔...");
    }
}
